class ChangeRequestsToTicketsEverywere < ActiveRecord::Migration
  def self.up
    rename_column :notes, :request_id, :ticket_id
    rename_column :comments, :request_id, :ticket_id
    rename_table :requests, :tickets
  end

  def self.down
    rename_column :notes, :ticket_id, :request_id
    rename_column :comments, :ticket_id, :request_id
    rename_table :tickets, :requests 
  end
end
